package com.jiantong.work.service;

import com.jiantong.work.model.VaccinePurchaseRecord;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by maowenjie on 2017/4/17.
 */
public interface VaccinePurchaseRecordReadService {
    /**
     * 查询 采购中心-疫苗购置 单据  单条
     *
     * @param id 单据id
     * @return VaccinePurchaseRecord对象
     */
    Response<VaccinePurchaseRecord> findById(Long id);

    /**
     * @param id 主 键
     * @return 状态
     */
    Response<Map<String, Object>> findStatusById(Long id);

    /**
     * 分页查询 采购中心-疫苗购置 单据  -- 养殖端
     *
     * @param pageNo   页码
     * @param pageSize 每页多少条
     * @param status   参数
     * @return Paging<VaccinePurchaseRecord>
     */
    Response<Paging<VaccinePurchaseRecord>> pagingVaccinePurchaseRecord(Integer pageNo, Integer pageSize,Long breedFactoryId,  Integer status);

    /**
     * 根据从日期到日期和养殖场名称查看防疫中心5项纪录的列表
     */

    Response<Paging<VaccinePurchaseRecord>> pagingVaccinePurchaseRecordGqv(Integer pageNo, Integer pageSize, String factoryName, Date fromDate, Date toDate);
    Response<Paging<VaccinePurchaseRecord>> pagingVaccinePurchaseRecordGqv(Integer pageNo, Integer pageSize,Map map);

    Response<Paging<VaccinePurchaseRecord>> pagingVaccinePurchaseRecordGqv(Integer pageNo, Integer pageSize, Long breedFactoryId,Integer breedType, Date fromDate, Date toDate);


    Response<Double> sumTotalPriceForWeb(Map<String, Object> map);

    Response<List<Map<String,Object>>> findVaccinePurchaseInfoWeb(Map<String, Object> map);
}
